package com.ub.party.common.constants;

public enum RespCodeEnum {
  SUCCESS(1, "处理成功"),
  FAILURE(0, "处理失败"),
  DATA_INVALID(501, "重复数据"),
  DUPLICATED(502, "重复数据");

  private int code;
  private String msg;

  RespCodeEnum(int code, String msg) {
    this.code = code;
    this.msg = msg;
  }

  public int getCode() {
    return code;
  }

  public String getMsg() {
    return msg;
  }
}
